@if($user)
    <a href="javascript:;"><span>{{ $user->name }}</span><i></i></a>
    <div class="user-area">
        <s style="position: absolute;display: block;width: 0; height: 0;top: -6px; right: 55px; margin-left: 5px;border-color: transparent transparent #fff; border-style: solid;border-width: 0 6px 6px;"></s>
        <div class="user-info">
            <h3><label>{{ $user->username }}</label><small>{{ trans('admin.online') }}</small></h3>
            <a style="width: 100%; display: block;" class="user-logout" href="{{ admin_url('auth/logout') }}">{{ trans('admin.logout') }}</a>
        </div>
        <dl class="user-login-info">
            <dt>如果账号存在异常，请尽快<a href="{{ admin_url('auth/users') }}" data-name="{{ trans('admin.setting') }}" class="add-page">{{ trans('admin.setting') }}</a></dt>
            <dd>账号创建时间：<span>{{ $user->created_at }}</span></dd>
            <dd>上次修改密码时间：<span>{{ $user->updated_at }}</span></dd>
            <dd><a href="{{ admin_url('addons/admin_logs?filter-path=admin%2Fauth%2Flogin') }}" data-name="登录记录" class="add-page user-login-log">查看登录记录</a></dd>
        </dl>
    </div>

@else
    <script language="JavaScript"> window.location.href = "{{ admin_url('auth/login') }}"</script>
@endif
